package com.zzyl.mapper;

import com.zzyl.entity.NursingProjectPlan;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface NursingProjectPlanMapper {
     /**
      * 根据项目id查询关联
      * @param id
      * @return
      */
     List<NursingProjectPlan> seleteById(Long id);

     /**
      * 批量添加项目关联
      * @param projectPlans
      */
     void addNursingProjectPlan(List<NursingProjectPlan> projectPlans);

     /**
      * 通过护理计划id查询护理项目关联
      * @param id
      */
     List<NursingProjectPlan> selectByIdNursingPlan(Long id);

     /**
      * 根据计划id删除全部关联数据
      * @param id
      */
     void deleteById(Long id);
}
